
package ufc.si.fbd.logica;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {
	//conexão
	private static final String url = "jdbc:postgresql://localhost/trabalho_fbd";
	private static final String usuario = "postgres";
	private static final String senha = "root";
	
	public static Connection getConnection() throws SQLException{
		return DriverManager.getConnection(url, usuario, senha);
	}

}